<?php
 use Zend\Session\Container;
 $user_session = new Container('user');

// echo $user_session['username'];exit;
 ?>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
 <script type="text/javascript" language="javascript" src="<?php echo $this->basePath() ?>/datagrid/js/jquery.dataTables.js"></script>
 <script>
		var ADMIN_BASE_URL = '<?php echo $baseUrl; ?>';	
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
		<style type="text/css" title="currentStyle">
			@import "<?php echo $this->basePath() ?>/datagrid/css/demo_page.css";
			@import "<?php echo $this->basePath() ?>/datagrid/css/demo_table.css";
			@import "<?php echo $this->basePath() ?>/datagrid/css/demo_table_jui.css";
			@import "<?php echo $this->basePath() ?>/datagrid/css/jquery-ui-1.8.4.custom.css";

		</style>
		<script type="text/javascript" charset="utf-8">
			$(document).ready(function() {
				executeGrid(ADMIN_BASE_URL+'/admin/rates-list','All');
			});
			
			//function AddContent(linkUrl,title)
			//{
			//	tb_show(title,linkUrl,null);
			//}
			function AddContent(id)
			{
				document.form.action=id;
				document.form.submit();
			}
		</script>
        <script type="text/javascript" language="javascript" src="<?php echo $this->basePath() ?>/datagrid/grid_utilities.js"></script>
		<script type="text/javascript" src="<?php echo $this->basePath() ?>/datagrid/thickbox.js"></script>
		<div id="main-wrapper-sec">
        <div class="blue_bar">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td>
	<h1><table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	
	<td width="10%" align="left">Rates</td>
	
	<td width="21%" valign="bottom">
    <div style="text-align:right;  float:right;">
           </div>
    </td>
	</tr>
	</table></h1>
	</td>
	</tr>
	</table>
	<div class="clear"></div>
	</div>
    <div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td>
	<table width="99%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
	<td valign="top">
	<div id="dt_example" style="">
		<div id="">
			<div id="dynamic">
			<div align="center" style="color:#FF0000"><?php echo $this->message;?></div>
            <form name="form" id="form" method="post">
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="display" id="example">
	<thead>
		<tr align="left">
        	<th width="6%">Select</th>
			<th width="15%">Flag</th>
            <th width="10%">AreaPrefix</th>
           	<th width="10%">CountryName</th>
			<th width="10%">Preminum</th>
			<th width="10%">Standerd</th>
			<th width="10%">BillingCycle</th>
			<th width="10%">status</th>
			<th width="10%">Action</th>
		 </tr>
        <tr><td colspan="5" class="gr_bg_ad">
        <div>
                    <div style=" float:left; padding-right:5px; padding-top:7px;">
                     <a href="javascript:void(0);" class="button_grey" onclick="checkAll('1','check')"><span ><strong>Check All</strong></span></a> </div>
                     
                     <div style=" float:left; padding-right:5px; padding-top:7px;"><a href="javascript:void(0);" class="button_grey" onclick="checkAll('0','check')"><span ><strong>Uncheck All</strong></span></a> </div>
					 <div style=" float:left; padding-right:5px; padding-top:7px;"><a href="<?php echo $this->Url(); ?>/bulk-updates" title="add" class="button_grey" ><span ><strong>Bulk Upload</strong></span></a></div>
					<!--<div style=" float:right; padding-right:5px; padding-top:7px;"><a href="javascript:void(0);" class="button_grey" onclick="changeStatus('check','<?php echo $this->Url('zfcadmin');?>/rates','<?php echo $this->Url('zfcadmin');?>/delete-selected','User(s) Deleted',' Delete the User(s)','All','rates');"><span ><strong>Delete</strong></span></a>
                    </div>-->
					<div style=" float:right; padding-right:5px; padding-top:7px;">
					<a href="javascript:void(0);" onclick="deleteAll()" class="button_grey" ><span ><strong>DeleteAll</strong></span ></a>
                    </div>
					<div style=" float:right; padding-right:5px; padding-top:7px;"><a href="javascript:void(0);" class="button_grey" onclick="changeStatus('check','<?php echo $this->Url('zfcadmin');?>/rates','<?php echo $this->Url('zfcadmin');?>/delete-selected','rate(s) Deleted',' Delete the rate(s)','All','ratesdel');"><span ><strong>Delete</strong></span></a>
                    </div>
					<div class="clear"></div>
                    </div>
                   
        </td></tr>
	</thead>
	<tbody valign="top">
		<tr>
			<td colspan="5" class="dataTables_empty">No Data Found</td>
		</tr>
	</tbody>

</table>
</form>
			</div>
			<div class="spacer"></div>
		</div>
	</div>
	</td>
	</tr>
	</table>
	</td>
	</tr>
	</table>
	
	<div class="clear"></div>
	</div>
	</div>
<script>
function deleteAll(){
var r=confirm("You are going to delete all record");
if (r==true)
  {
  window.location=ADMIN_BASE_URL+'/admin/delete-all';
  }else{
  return false;
  }
}
</script>